
import { Entity, NgField, NgObject, EntityList, NgList, NgDynamic, DynamicEntity, NgEntity } from '@farris/devkit';

@NgEntity({
    originalCode: "newObject1",
    nodeCode: "newObject1s"
})
export class NewObject1Entity extends Entity {

    @NgField({
        originalDataField: 'ID',
        dataField: 'id',
        primary: true,
        originalDataFieldType: 'String',
        initValue: '',
        path: 'ID',

        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    id: string;

    @NgField({
        originalDataField: 'ParentID',
        dataField: 'parentID',
        originalDataFieldType: 'String',
        initValue: '',
        path: 'ParentID',

        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    parentID: string;

    @NgField({
        originalDataField: 'code',
        dataField: 'code',
        originalDataFieldType: 'String',
        initValue: '',
        path: 'code',

        validRules: [
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    code: string;

    @NgField({
        originalDataField: 'note',
        dataField: 'note',
        originalDataFieldType: 'String',
        initValue: '',
        path: 'note',

        validRules: [
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    note: string;

    @NgField({
        originalDataField: 'creator',
        dataField: 'creator',
        originalDataFieldType: 'String',
        initValue: '',
        path: 'creator',

        validRules: [
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    creator: string;

    @NgField({
        originalDataField: 'createdDate',
        dataField: 'createdDate',
        originalDataFieldType: 'String',
        initValue: '',
        path: 'createdDate',

        validRules: [
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    createdDate: string;

    @NgField({
        originalDataField: 'kssj',
        dataField: 'kssj',
        originalDataFieldType: 'String',
        initValue: '',
        path: 'kssj',

        validRules: [
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    kssj: string;

    @NgField({
        originalDataField: 'endingdate',
        dataField: 'endingdate',
        originalDataFieldType: 'String',
        initValue: '',
        path: 'endingdate',

        validRules: [
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    endingdate: string;

    @NgField({
        originalDataField: 'cxfs',
        dataField: 'cxfs',
        originalDataFieldType: 'String',
        initValue: '',
        path: 'cxfs',

        validRules: [
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    cxfs: string;

    @NgField({
        originalDataField: 'cxje',
        dataField: 'cxje',
        originalDataFieldType: 'String',
        initValue: '',
        path: 'cxje',

        validRules: [
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    cxje: string;

    @NgField({
        originalDataField: 'sfybt',
        dataField: 'sfybt',
        originalDataFieldType: 'String',
        initValue: '',
        path: 'sfybt',

        validRules: [
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    sfybt: string;

    @NgField({
        originalDataField: 'btbz',
        dataField: 'btbz',
        originalDataFieldType: 'String',
        initValue: '',
        path: 'btbz',

        validRules: [
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    btbz: string;

}